<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>数据库操作</title>
</head>
<body>
<h1>命令模式执行数据库操作</h1>
<p class="discription">可一次执行多条语句，或执行选择的语句~</p>
<form action='exe.php' method='post'>
	<textarea name='sql'>
use db;
show tables;
desc chengyu;
select * from chengyu limit 2;</textarea>
    <button onclick='return check()'>执行 Execute</button>
</form>
</body>
</html>
-------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>数据库操作</title>
</head>
<body>
<h1>命令执行结果</h1>
<hr>
<div class='sql'>use db</div>
<div class='result'>受影响的行数：0</div>
<div class='sql'>show tables</div>
<table><tr><th>序号</th><th>Tables_in_db</th></tr><tr><td>1</td><td>chengyu</td></tr><tr><td>2</td><td>students</td></tr></table>
<div class='sql'>insert into chengyu
    values ('哈哈哈','哈'),('嘻嘻嘻','嘻')</div>
<div class='result'>受影响的行数：2</div>

</body>
</html>

